<link href="images/skin.css" rel="stylesheet" type="text/css" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
-->
</style>
<script type="text/javascript" src="js/jquery.js"></script>
<script language="javascript" src="js/tip.js"></script>
<script language="javascript">
$(document).ready(function(){
    //全选
	$("#allcheck").click(function(){
	  $("[id='checks']").each(function(){
	  if($(this).attr("checked")==true)
		{	
			$(this).removeAttr("checked");
			
						
		}
		else
		{
			$(this).attr("checked",true);
		}
	  });
	});
});


function del(id)
{
	if(confirm('您确定要删除吗？'))
	{
		$.post("admin_list.php",{delid:id},function(data,textStatus){
		
											   if(data=1)
											   {
												   info="成功";
												   msg(info);
												}
											   else{
												   info="失败";
												   msg(info);
												   }
											   });
	}
}


</script>
<body>
<form name="form1" action="" method="post" enctype="multipart/form-data">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
  <tr>
    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="images/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
        <td height="31"><div class="titlebt">管理员列表</div></td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  
  <tr>
    <td valign="middle" background="images/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
    
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
		      <br>	
              
 <tr  class="nowtable">
  <td class="left_bt2" style="padding-left:10px;">编号</td>
  <td class="left_bt2">管理员名称</td> <td class="left_bt2">管理员邮箱</td> <td class="left_bt2">添加时间</td><td class="left_bt2">最后登录时间</td><td class="left_bt2">最后登录IP</td><td class="left_bt2">管理员组</td><td class="left_bt2">操作</td>
</tr>	
      <{foreach item=loop from=$admin_list}>
      <tr id="after">
      <td width="8%" height="30" bgcolor="#f2f2f2" class="left_txt" style="padding-left:20px;">
      <{$loop.id}></td>
      <td width="13%" height="30" class="left_txt" bgcolor="#f2f2f2"><{$loop.admin_name}></td>
      <td width="15%" height="30" class="left_txt" bgcolor="#f2f2f2"><{$loop.admin_email}></td>
      <td width="14%" height="30" class="left_txt" bgcolor="#f2f2f2"><{$loop.add_time}></td>
      <td width="13%" height="30" class="left_txt" bgcolor="#f2f2f2"><{$loop.last_login}></td>
      <td width="14%" height="30" class="left_txt" bgcolor="#f2f2f2"><{$loop.last_ip}></td>
      <td width="14%" height="30" class="left_txt" bgcolor="#f2f2f2"><{$loop.group_name}></td>
      <td width="9%" height="30" bgcolor="#f2f2f2" class="left_txt" >&nbsp;&nbsp;<a style=" cursor: pointer;" onClick="del(<{$loop.id}>)"><img src="images/icon_trash.gif" border="0"></a></td>
      </tr>
      <{/foreach}>
      </table>
    </td>
    <td background="images/mail_rightbg.gif">&nbsp;</td>
  </tr>
 <tr>
    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
</form>
</body>
